package com.app.micaihu.view.army.dialog

import com.app.base.BaseDialogFragment
import com.app.micaihu.R
import kotlinx.android.synthetic.main.army_sign_out_dialog.*

/**
 * 退出军团
 */
class ArmySignOutDialog : BaseDialogFragment() {
    override fun getLayoutId() = R.layout.army_sign_out_dialog
    override fun setData() {

    }

    override fun addListeners() {
        tvSignOut.setOnClickListener {
            onSignOutClickListener?.onSignOutClick()
        }
        tvCancel.setOnClickListener { dismiss() }
    }

    private var onSignOutClickListener: OnSignOutClickListener? = null

    interface OnSignOutClickListener {
        fun onSignOutClick()
    }

    fun setOnSignOutClickListener(onSignOutClickListener: OnSignOutClickListener) {
        this.onSignOutClickListener = onSignOutClickListener
    }
}